<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2024/8/12
 * Time: 16:30
 */

namespace app\model\index;


class Web extends Base
{
    protected $append = [
        'type_text'
    ];
    public function UserData(){
        return $this->hasOne(User::class,'id','user_id');
    }
    public function getTypeTextAttr($value,$data){
        $array = [
            1 => 'HTTP嵌套',
            3 => 'HTTPS嵌套',
            2 => 'PHP抓取'
        ];
        return $array[$data['type']];
    }
}